package com.hanhai.zrb.api.biz.service;

import java.util.List;
import java.util.Map;


import com.hanhai.zrb.model.project.CityInfo;

import com.hanhai.zrb.model.project.dto.CityInfoDto;



public interface CityInfoService {
	List<CityInfo> selectAll();
	CityInfo  selectByPrimaryKey (Integer id );
	CityInfo selectByPostcode (String postcode);
	int deleteByPrimaryKey (Integer id );

	int insert( CityInfo record );

	int insertSelective( CityInfo record );

	int updateByPrimaryKeySelective( CityInfo record );

	int updateByPrimaryKey ( CityInfo record );
	
	List<CityInfo> findAllProvince();
	
	List<CityInfo> findCityProvince(String postcode );
	
	List<CityInfo> findCountryProvince(String postcode,String topCity);
	
	List<CityInfo> findChildCity(Integer topId);
	
	CityInfo findByCityName (String cityName );
	
	CityInfo findByCityNameAndParentId (String cityName,Integer topId);
	
	CityInfo findByParentName(String proName, String cityName,String countryName);
	
	List<CityInfo> findByCityAndParentName(String keyWord);
	
    int countCityInfo (CityInfoDto dto);
	
	List<CityInfo> list(CityInfoDto dto);
	List<CityInfo> selectByListPostCode(List<String> list);
	
	Map<String,CityInfo> selectAllMap();
}
